﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Member_Master.Master" AutoEventWireup="true" CodeBehind="M_ContactPerson.aspx.cs" Inherits="WebApplication.M_ContactPerson" %>
<%@ Import  Namespace="HKEA.CMS.Core.Utility" %>
<%@ Register TagPrefix="uc1" TagName="usermeg" Src="~/UserControl/M_UserMessageControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="maintab" Src="~/UserControl/M_MainTabControl.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.labelTb tr td{ width:33%;}
</style>
<script type="text/javascript" src="Media/Js/BankScript.js"></script>
<script type="text/javascript" src="Media/AjaxJs/M_ContactPerson.js"></script>
<script type="text/javascript" src="Media/AjaxJs/CheckInfo.js"></script>
<script type="text/javascript" src="Media/Js/jquery.lightbox-0.5.js"></script>
    <link href="Media/Css/jquery.lightbox-0.5.css" rel="Stylesheet" />
    <link href="media/js/jquery.uploadify-v2.1.4/uploadify.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="media/js/jquery.uploadify-v2.1.4/swfobject.js"></script>
    <script type="text/javascript" src="media/js/jquery.uploadify-v2.1.4/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        AverageBrand();
        if ($("#ContentPlaceHolder2_lkAdd").attr("href") != null) {
            $(".LiOFAdd").removeAttr("onClick");
        }

        $("#LiOfQuitAdd").click(function () {
            if ($("#ContentPlaceHolder2_lkAdd").attr("href") != null) {
                $("#ContentPlaceHolder2_lkbtnSave").addClass("aspNetDisabled");
            } 
        }); 

        var type = '<%=type %>'; 
        if (type == "add") {
            AddContactPerson();
        }
        $("#ContentPlaceHolder2_txtHKID").blur(function () {
            var updatedVal = $("#ContentPlaceHolder2_txtHKID").val();
            var disVal = "";
            $("#ContentPlaceHolder2_hidTxtHKID").val(updatedVal);
            var length = updatedVal.length;
            if (length <= 3) {
                disVal = updatedVal;
            }
            else {
                disVal = updatedVal.substring(0, 3) + "***" + updatedVal.substring(length - 1);
            }
            $("#ContentPlaceHolder2_txtHKID").val(disVal);
        });

        $("#ContentPlaceHolder2_txtHKID").focus(function () {
            var trueVal = $("#ContentPlaceHolder2_hidTxtHKID").val();
            $("#ContentPlaceHolder2_txtHKID").val(trueVal);
        });

        if ($("#ContentPlaceHolder2_hidTxtHKID").val() != "") {
            $("#ContentPlaceHolder2_txtHKID").focus();
            $("#ContentPlaceHolder2_txtHKID").blur();
        }

        var ctuid = '<% =ctuid%>';
        if (ctuid > 0) {
            //            $("#ContentPlaceHolder1_hdCPUID").val(cpuid);
            ToggleDocument('wrapToggle');
        }
        $("#QuitButton").click(function () {
            $("#DeleteBox").PopupDiv("close");
        });
        var listattr = $("#ContentPlaceHolder2_hidAttributeUID").val().split(',');
        $.each(listattr, function (key, values) {
            $("#ContentPlaceHolder2_ckbAttributeList input[value=" + values + "]").attr("checked", true);
        });
        var listjob = $("#ContentPlaceHolder2_hidJobNatureUID").val().split(',');
        $.each(listjob, function (key, values) {
            $("#ContentPlaceHolder2_ckbJobNatureList input[value=" + values + "]").attr("checked", true);
        });
        $("#uploadify").uploadify({
            'uploader': 'media/js/jquery.uploadify-v2.1.4/uploadify.swf',
            'script': 'ServerAshxFile/JqueryUploadHandler.ashx',
            'scriptData': {'type': 'ContactPersonPhoto','From':'App' },
            'method': 'GET',
            'cancelImg': 'media/js/jquery.uploadify-v2.1.4/cancel.png',
            'folder': 'media/upload/contactpersonphoto',
            'queueID': 'fileQueue',
            'auto': false,
            'multi': false,
            'displayData': 'speed',
            'fileExt': '*.jpg;*.gif;*.png;*.bmp',
            'fileDesc': 'Image Files',
            'sizeLimit': 102400,
            'onInit': function () { },
            'onSelect': function (e, queueId, fileObj) {
                $('#id_message').html("文件名:" + fileObj.name + "\r\n" +
                              "文件大小:" + fileObj.size + "bytes \r\n" +
                              "文件类型:" + fileObj.type
                              );
            },
            'onAllComplete': function (event, data) {
                $("#ContentPlaceHolder2_btnRefreshImgList").click();

                setTimeout(function () {
                    var htmlval = $(".slist").html();
                    $(".slist").html(htmlval);
                    $(".slist li:first-child").children("span").click();
                }, 1000);
            }
        })
    });
    function choice_pic() {
        $('#uploadify').uploadifyUpload();
    }
    function CheckInfo() {
        $(".clsWarningMeg").html("");
        var ret = false;
        SetJobInfo();
        SetAttributeInfo();
        ret = volidateConInfo();
        if (ret) {
            if ($("#ContentPlaceHolder2_lkbtnSave").hasClass("aspNetDisabled").toString() != "true") {
                $("#ContentPlaceHolder2_lblMeg").html("数据正在处理,请稍候...");
            }
            else {
                ret = false;
            }
        }
        return ret;
    } 
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:HiddenField ID="hdCustomerUID" runat="server" />
<div class="content-title">
        <h1>
            Membership Info</h1>
    </div>
    <input type="hidden" value="t3" id="pageName" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<uc1:usermeg ID="usermeg" runat="server" ></uc1:usermeg>        
    <div class="partWrap">
    <uc1:maintab ID="maintab"  runat="server"/>
  <div class="clear20"></div>    
    <ul class="uibtn">
    	<li class="LiOFAdd" onClick="javascript:AddContactPerson();"><span><asp:HyperLink ID="lkAdd" runat="server">Add Contact Person</asp:HyperLink></span></li>
	</ul>
<div class="wrapToggle"  id="wrapToggle">
<h4 class="title20">Contact Person Detail Information</h4>
             <div class="addWrap"> 
	  <ul class="uibtn">
    	<li onClick="javascript:AddImg()"><span>Add ContactPerson Image</span></li>
	  </ul>	 
	 <div class="smallImgList" id="smallImgList2" style="bottom:-200px;">	
	<table width="100%">
	<tr>
	<td  align="right"> <img class="delete closeBtn" src="Media/Css/images/del-form.png" onClick="CloseDocument('smallImgList2')"></td>
	</tr>
	<tr>
	 <td><h5>Choose from Media Room</h5></td>
	</tr>
	<tr>
	<td>	
	 <div class="imgQu">
     <asp:UpdatePanel ID="UpdatePanel6" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
	 <ul class="slist">
         <asp:Repeater ID="rptImgList" runat="server" ViewStateMode="Disabled">
         <ItemTemplate>
         <li><span class="clssmallimglist" onclick="ToRelated(this)"><asp:Image ID="imgMedia" runat="server" CssClass='<%#Eval("KeyUID") + "_"+Eval("From")%>' ImageUrl='<%#JoinPath(Eval("FilePath"),Eval("FileName"),"_50_50",".jpg") %>'  AlternateText='<%#Eval("FileName") %>'/></span></li>
         </ItemTemplate>
         </asp:Repeater>
	 </ul>
     </ContentTemplate>
     <Triggers><asp:AsyncPostBackTrigger ControlID="btnRefreshImgList" EventName="Click" /></Triggers>
     </asp:UpdatePanel>
         <div class="clsNoDisplay">
            <asp:Button ID="btnRefreshImgList" runat="server" onclick="btnRefreshImgList_Click"/>
          </div>
	 </div>
	</td>
	</tr>
	<tr>
	<td height="35"><a href="#">Upload image from your computer </a>
    <div id="fileQueue"></div>
    <input type="file" name="uploadify" id="uploadify" /><br />
    <span id="id_message" style="background-color: #ffc; color: Red;"></span>
    <asp:HiddenField ID="hfupload_pic" runat="server" />
    </td>
	</tr>
     <tr>
    <td>
    <p class="red italic">Photo Specifications: Full Size 200pix(W) x 120pix(H); Format JPEG, BMP; File Size: 100KB
</p>
    </td>
    </tr>

	<tr>

	<td height="35">
    <table  border="0" cellspacing="0" cellpadding="0" class="btnwrap">
			  <tr>
				<td  class="btnwrapl">
				 <ul class="uibtn">
    	              <li><a id="id_choice_pic" onclick="choice_pic()">UpLoad</a></li>
	             </ul>
				</td>
				<td class="btnwrapr">
				 <ul class="uibtn">
    	           <li ><a id="coloseImgList" onclick ="CloseDocument('smallImgList2')">Quit</a></li>
	              </ul>
				</td>
                <td >
                </td>				
			  </tr>
			</table>	 </td>
	</tr>
	</table>
	 </div>
	 </div>
     <div class="clear20"></div>
     		        <ul class="ImgList"> 
                    <asp:Repeater ID="rptRelatedImgList" runat="server" ViewStateMode="Disabled" 
                            onitemdatabound="rptRelatedImgList_ItemDataBound">
                    <ItemTemplate>
		            <li id='<%#Eval("KeyMediaRelatedUID") %>' class='<%#Eval("KeyMediaUID") %>'>
		                <p class="p2">
                            <asp:Literal ID="ltImg" runat="server"></asp:Literal>
                        </p>
                        <div class="p4">
                            <span class="showbig" onclick="EditImgRelated(this)">Edit</span> | 
                            <span class="closeBtnbig" onclick="DeleteRelated(this)">Delete</span>
                        </div>
		            </li>
                    </ItemTemplate>
		            </asp:Repeater>
		        </ul>
                <asp:UpdatePanel ID="UpdatePanel7" runat="server"  UpdateMode="Conditional">
                <ContentTemplate>  
                <asp:HiddenField ID="hidMediaKeyUID" runat="server" />
                <asp:HiddenField ID="hidMediaRelatedKeyUID" runat="server" />
            </ContentTemplate>
            <Triggers><asp:AsyncPostBackTrigger ControlID="lkbtnSave" EventName="Click" /></Triggers>
            </asp:UpdatePanel>  
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <p class="upinput">Salutation</p>
        <asp:DropDownList CssClass="adselect" ID="ddlSalutation" runat="server">
        </asp:DropDownList>
    </td>
    <td><p> </p></td>
    <td><p> </p></td>
    <td><p> </p></td>
  </tr>
  <tr>
    <td><p class="upinput">Christian Name</p><asp:TextBox ID="txtChristianName" runat="server" CssClass="input200"></asp:TextBox></td>
    <td><p class="upinput">First Name</p><asp:TextBox ID="txtFirstName_Eng" runat="server" CssClass="input200"></asp:TextBox></td>
    <td><p class="upinput">Last Name</p><asp:TextBox ID="txtLastName_Eng" runat="server" CssClass="input200"></asp:TextBox></td>
    <td><p class="upinput">Other Title</p><asp:TextBox ID="txtOtherTitle_Eng" runat="server" CssClass="input200"></asp:TextBox></td>
  </tr>
  <tr>
    <td><p class="upinput">姓</p> <asp:TextBox ID="txtLastName_Chi" runat="server" CssClass="input200"></asp:TextBox></td>
    <td><p class="upinput">名</p> <asp:TextBox ID="txtFirstName_Chi" runat="server" CssClass="input200"></asp:TextBox></td>
    <td colspan="2"><p class="upinput">名銜 </p> <asp:TextBox ID="txtOtherTitle_Chi" runat="server" CssClass="input200"></asp:TextBox></td>
    <%--<td><p class="upinput">Photo </p> <asp:TextBox ID="txtPhoto" runat="server" CssClass="input200"></asp:TextBox></td>--%>
  </tr>
  <tr>
    <td><p class="upinput">Position	 </p> <asp:TextBox ID="txtPosition_Eng" runat="server" CssClass="input200"></asp:TextBox></td>
    <td><p class="upinput">職位 </p> <asp:TextBox ID="txtPosition_Chi" runat="server" CssClass="input200"></asp:TextBox></td>
    <td><p class="upinput">HKID / Passport No. </p><asp:TextBox ID="txtHKID" runat="server" CssClass="input200"></asp:TextBox><asp:HiddenField
            ID="hidTxtHKID" runat="server" />
    </td>
    <td><p> </p></td>
  </tr>
  <tr>
    <td>
    <p class="upinput">Related Contact Person</p>
        <asp:TextBox ID="txtRelatedCP" CssClass="input200" runat="server"></asp:TextBox>
    </td>
    <td valign="top"><p class="upinput">Relationship</p> <asp:TextBox ID="txtRelationship" runat="server" CssClass="input200"></asp:TextBox></td>
    <td><p> </p></td>
    <td><p> </p></td>
  </tr>
  <tr>
    <td colspan="4"><p class="upinput">Remark</p><asp:TextBox ID="txtRemark" runat="server" CssClass="inputRmark"></asp:TextBox></td>
   
  </tr>
</table>

		
	<h4  class="title20"> Address Information</h4>
    <div>
              <div class="fudong" id="divfollow">
    <ul class="uibtn">
	   <li onclick="GetInphaseAddress('inphasebox')"><span>Follow Address</span></li>
	</ul>
    <div class="inphasewrap">
    <div class="inphasebox" id="inphasebox">
     <img src="Media/Css/images/del-form.png"  class="lisColumtBoxClose" onclick="CloseDocument('inphasebox')" />
      <h4>Follow  address</h4>
       <div class="M_Follow-address-div"><!--edit by peter 2011-08-01-->
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="labelTb followtb_ajax">
         <tr>
       <td height="20"><span class="clsWarningMeg"></span></td>
       </tr>
       </table>
       </div><!--edit by peter 2011-08-01-->
       <table  border="0" cellspacing="0" cellpadding="0" class="btnwrap">
			  <tr>
				<td  class="btnwrapl">
				 <ul class="uibtn">
    	              <li onclick="GetInfo()"><span >Follow Address</span></li>
	             </ul>
				</td>
				<td class="btnwrapr">&nbsp;
<%--				 <ul class="uibtn">
    	           <li ></li>
	              </ul>--%>
				</td>
                <td >
                </td>				
			  </tr>
		</table>
    </div>
    </div>
     </div>
    </div><!--edit by peter 2011-03-03-->





	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td>

	<table cellpadding="0" cellspacing="0" width="100%" >
	<tr>
	 <td width="50%">
	 <p class="upinput">Room / Flat /Building</p>
	  <asp:TextBox ID="txtFlat_Eng" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	 <td width="50%"><p class="upinput">District</p>
	  <asp:TextBox ID="txtDistrict_Eng" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	</tr>
	<tr>
	 <td><p class="upinput">Street/Road</p>
	  <asp:TextBox ID="txtStreet_Eng" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	 <td><p class="upinput">City</p>
	  <asp:TextBox ID="txtCity_Eng" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	</tr>
	<tr>
	 <td><p class="upinput">Area</p>
	  <asp:TextBox ID="txtArea_Eng" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	 <td><p class="upinput">Province</p>
	  <asp:TextBox ID="txtProvince_Eng" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	</tr>
	</table>
		</td>
		<td>

	<table cellpadding="0" cellspacing="0" width="100%" >
	<tr>
	 <td>
	 <p class="upinput">室/樓層/大廈</p>
      <asp:TextBox ID="txtFlat_Chi" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	 <td><p class="upinput">區域</p>
	  <asp:TextBox ID="txtDistrict_Chi" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	</tr>
	<tr>
	 <td><p class="upinput">街道</p>
	  <asp:TextBox ID="txtStreet_Chi" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	 <td><p class="upinput">城市</p>
	  <asp:TextBox ID="txtCity_Chi" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	</tr>
	<tr>
	 <td><p class="upinput">地區</p>
	  <asp:TextBox ID="txtArea_Chi" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	 <td><p class="upinput">州/省</p>
	  <asp:TextBox ID="txtProvince_Chi" CssClass="input200" runat="server"></asp:TextBox>
	 </td>
	</tr>
	</table>
		</td>
	  </tr>
	  <tr>
		<td><table cellpadding="0" cellspacing="0"  width="100%" >
	<tr>
	<td><p class="upinput">Country </p>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:DropDownList ID="ddlCountry" class="adselect" runat="server">
        </asp:DropDownList>
        </ContentTemplate>
        <Triggers><asp:AsyncPostBackTrigger ControlID="ddlArea" EventName="SelectedIndexChanged" /></Triggers>
  </asp:UpdatePanel>
	</td>
	<td><p class="upinput">Continent </p>
        <asp:DropDownList ID="ddlArea" CssClass="adselect" runat="server" 
            onselectedindexchanged="ddlArea_SelectedIndexChanged" AutoPostBack="true">
        </asp:DropDownList>
	</td>	
	</tr>
	</table></td>
		<td><table cellpadding="0" cellspacing="0" width="100%"  >
	<tr>
	<td>
	</td>	
	<td><p class="upinput">Postal Code</p><asp:TextBox ID="txtPostCode" CssClass="input200" runat="server"></asp:TextBox></td>
	</tr>
	</table></td>
	  </tr>
	</table>
<h4 class="title20">Contact Information</h4>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table" >
		 <tr>
         <td style="padding-bottom:0">Telephone</td>
         </tr>         
          <tr>
		  <td  id="phone-wrap" class="parnt">
          <asp:Panel ID="PanelT1" runat="server" CssClass="activityWrap">
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListTel1" runat="server" class="autoselect">
                        </asp:DropDownList>	                
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelTelephone("p")' alt=""/>   
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxTC1" ValidationGroup="con"  runat="server"   CssClass="input60"></asp:TextBox>
                   
                    </td>
					<td width="70"><asp:TextBox ID="TextBoxTA1" ValidationGroup="con"  runat="server"   CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxT1" runat="server" ValidationGroup="con"  CssClass="input100"  ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxTD1" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTD1">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxTS1" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTS1">Unsubscribe</label></td>			  
				  </tr>
                  <tr>
                  <td colspan="3">
                  <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	

          </asp:Panel>           	
          <asp:Panel ID="PanelT2" runat="server" CssClass="activityWrap">                     
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListTel2" runat="server" class="autoselect">
                        </asp:DropDownList>					
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelTelephone("p")' alt=""/>  
                    <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelTelephone",this)' alt="" /> 
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxTC2" ValidationGroup="con"  runat="server"   CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxTA2" ValidationGroup="con"  runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxT2" runat="server" ValidationGroup="con"  CssClass="input100"  ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxTD2" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTD2">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxTS2" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTS2">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                  <td colspan="3">
                    <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
           </asp:Panel>
          <asp:Panel ID="PanelT3" runat="server" CssClass="activityWrap">

		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListTel3" runat="server" class="autoselect">
                        </asp:DropDownList>					
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelTelephone("p")' alt=""/> 
                     <img src="Media/Css/images/delete-green.png"   onClick='delete_confirms("DeleteBox","delModelTelephone",this)' alt="" />   
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxTC3" runat="server"   CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxTA3" runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxT3" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxTD3" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTD3">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxTS3" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTS3">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                    <td colspan="3">
                      <span class="Warning" ></span>
                    </td>
                  </tr>
				</table>	
         
        </asp:Panel>	
          <asp:Panel ID="PanelT4" runat="server" CssClass="activityWrap">
                     
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListTel4" runat="server" class="autoselect">                      
                        </asp:DropDownList>					
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelTelephone("p")' alt=""/>   
                     <img src="Media/Css/images/delete-green.png"   onClick='delete_confirms("DeleteBox","delModelTelephone",this)' alt="" /> 
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxTC4" runat="server"   CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxTA4" runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxT4" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxTD4" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTD4">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxTS4" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTS4">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                   <td colspan="3">
                       <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
          </asp:Panel>
          <asp:Panel ID="PanelT5" runat="server" CssClass="activityWrap"> 
                     
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListTel5" runat="server" class="autoselect">
                        </asp:DropDownList>					
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelTelephone("p")' alt=""/>   
                     <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelTelephone",this)' alt="" /> 
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxTC5" runat="server"   CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxTA5" runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxT5" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxTD5" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTD5">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxTS5" runat="server" /><label for="ContentPlaceHolder2_CheckBoxTS5">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                   <td colspan="3">
                       <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
          </asp:Panel>

			</td>
		  </tr>
          <tr >
          <td style="padding-bottom:0px;"> Fax</td>
          </tr>
		  <tr>
		  <td  id="fax-wrap" class="parnt">

          <asp:Panel ID="PanelF1" runat="server" CssClass="activityWrap">
                             
		     <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListFax1" runat="server" class="autoselect">
                        </asp:DropDownList>					
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelFax("p")' alt=""/>   
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxFC1" runat="server"   CssClass="input60"></asp:TextBox>
                    
                    </td>
					<td width="70"><asp:TextBox ID="TextBoxFA1" runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxF1" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxFD1" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFD1">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxFS1" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFS1">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                  <td colspan="3">
                      <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
         </asp:Panel>
          <asp:Panel ID="PanelF2" runat="server" CssClass="activityWrap">
                     
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListFax2" runat="server" class="autoselect">
                        </asp:DropDownList>					
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelFax("p")' alt=""/>   
                    <img src="Media/Css/images/delete-green.png"   onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" /> 
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxFC2" runat="server"    CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxFA2" runat="server"   CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxF2" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxFD2" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFD2">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxFS2" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFS2">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                  <td colspan="3">
                     <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
           </asp:Panel>
          <asp:Panel ID="PanelF3" runat="server" CssClass="activityWrap">
                     
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListFax3" runat="server" class="autoselect">
                        </asp:DropDownList>					
                    <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelFax("p")' alt=""/>   
                    <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" />  
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxFC3" runat="server"   CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxFA3" runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxF3" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxFD3" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFD3">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxFS3" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFS3">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                  <td colspan="3">
                  <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
         </asp:Panel>
          <asp:Panel ID="PanelF4" runat="server" CssClass="activityWrap">
                     
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListFax4" runat="server" class="autoselect">                      
                        </asp:DropDownList>					
                     <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelFax("p")' alt=""/>   
                    <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" /> 
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxFC4" runat="server"   CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxFA4" runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxF4" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxFD4" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFD4">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxFS4" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFS4">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                  <td colspan="3">
                     <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
           </asp:Panel>
          <asp:Panel ID="PanelF5" runat="server" CssClass="activityWrap">
                     
		  <table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
				  <td colspan="3">                
					<p class="upinput">
                        <asp:DropDownList   ID="DropDownListFax5" runat="server" class="autoselect">
                        </asp:DropDownList>					
                     <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelFax("p")' alt=""/>   
                    <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" /> 
                  </p>					
					</td>					
				  </tr>
				  <tr>
					<td width="70"><asp:TextBox ID="TextBoxFC5" runat="server"   CssClass="input60"></asp:TextBox></td>
					<td width="70"><asp:TextBox ID="TextBoxFA5" runat="server"  CssClass="input60" ></asp:TextBox></td>
					<td><asp:TextBox ID="TextBoxF5" runat="server" CssClass="input100"   ></asp:TextBox></td>					
				  </tr>
				  <tr>				  
				  <td class="checkbox-wrap">
                      <asp:CheckBox ID="CheckBoxFD5" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFD5">DNC</label></td>
				  <td class="checkbox-wrap" colspan="2">
                      <asp:CheckBox ID="CheckBoxFS5" runat="server" /><label for="ContentPlaceHolder2_CheckBoxFS5">Unsubscribe</label></td>			  
				  </tr>
                   <tr>
                  <td colspan="3">
                  <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>	
         
          </asp:Panel>
		
			</td>
		  </tr>	
          <tr >
          <td style="padding-bottom:0px;">Email</td>
          </tr>	  
		  <tr>
			<td  id="email-wrap" class="parnt">	

               <asp:Panel ID="PanelE1" runat="server" CssClass="activityWrap">         			
				<table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
					<td >
					<p class="upinput">
                        <asp:DropDownList ID="DropDownListEm1" runat="server" CssClass="autoselect">
                        </asp:DropDownList>					
                     <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelEmail("e")' alt="" />							
					</p>
					</td>					
				  </tr>
				  <tr>					
					<td >
                        <asp:TextBox ID="TextBoxEmail1" runat="server" CssClass="input200"></asp:TextBox> </td>                   
														
				  </tr>
                  <tr>
                     <td class="checkbox-wrap">
                         <asp:CheckBox ID="CheckBoxES1" runat="server" /><label for="ContentPlaceHolder2_CheckBoxES1" style="padding-right:33px;" >Unsubscribe</label><asp:CheckBox ID="CheckBoxHB1" runat="server" /><label for="ContentPlaceHolder2_CheckBoxHB1" >Hard Bounce</label>
                         </td>	
                  </tr>
                   <tr>
                  <td colspan="3">
                     <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>		
              </asp:Panel>
               <asp:Panel ID="PanelE2" runat="server" CssClass="activityWrap">		
				<table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
					<td >
					<p class="upinput">
                        <asp:DropDownList ID="DropDownListEm2" runat="server" CssClass="autoselect">
                        </asp:DropDownList>					
                      <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelEmail("p")' alt=""/>   
                    <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" /> 						
					</p>
					</td>					
				  </tr>
				  <tr>					
					<td >
                        <asp:TextBox ID="TextBoxEmail2" runat="server" CssClass="input200"></asp:TextBox> 
                        </td>                   
														
				  </tr>
                  <tr>
                     <td class="checkbox-wrap">
                         <asp:CheckBox ID="CheckBoxES2" runat="server" /><label for="ContentPlaceHolder2_CheckBoxES2" style="padding-right:33px;">Unsubscribe</label><asp:CheckBox ID="CheckBoxHB2" runat="server" /><label for="ContentPlaceHolder2_CheckBoxHB2" >Hard Bounce</label></td>	
                  </tr>
                   <tr>
                  <td colspan="3">
                  <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>		
               </asp:Panel>
               <asp:Panel ID="PanelE3" runat="server" CssClass="activityWrap">  			
				<table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
					<td >
					<p class="upinput">
                        <asp:DropDownList ID="DropDownListEm3" runat="server" CssClass="autoselect">
                        </asp:DropDownList>					
                          <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelEmail("p")' alt=""/>   
                    <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" /> 						
					</p>
					</td>					
				  </tr>
				  <tr>					
					<td >
                        <asp:TextBox ID="TextBoxEmail3" runat="server" CssClass="input200"></asp:TextBox>                    
							</td>							
				  </tr>
                  <tr>
                     <td class="checkbox-wrap">
                         <asp:CheckBox ID="CheckBoxES3" runat="server" /><label for="ContentPlaceHolder2_CheckBoxES3" style="padding-right:33px;">Unsubscribe</label><asp:CheckBox ID="CheckBoxHB3" runat="server" /><label for="ContentPlaceHolder2_CheckBoxHB3" >Hard Bounce</label></td>	
                  </tr>
                   <tr>
                  <td colspan="3">
                  <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>		
               </asp:Panel>
               <asp:Panel ID="PanelE4" runat="server" CssClass="activityWrap">      			
				<table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
					<td >
					<p class="upinput">
                        <asp:DropDownList ID="DropDownListEm4" runat="server" CssClass="autoselect">
                        </asp:DropDownList>					
                        <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelEmail("p")' alt=""/>   
                    <img src="Media/Css/images/delete-green.png" onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" /> 						
					</p>
					</td>					
				  </tr>
				  <tr>					
					<td >
                        <asp:TextBox ID="TextBoxEmail4" runat="server" CssClass="input200"></asp:TextBox>                    
								</td>						
				  </tr>
                  <tr>
                     <td class="checkbox-wrap">
                         <asp:CheckBox ID="CheckBoxES4" runat="server" /><label for="ContentPlaceHolder2_CheckBoxES4" style="padding-right:33px;" >Unsubscribe</label><asp:CheckBox ID="CheckBoxHB4" runat="server" /><label for="ContentPlaceHolder2_CheckBoxHB4" >Hard Bounce</label></td>	
                  </tr>
                   <tr>
                  <td colspan="3">
                  <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>		
               </asp:Panel>
               <asp:Panel ID="PanelE5" runat="server" CssClass="activityWrap">         			
				<table width="285" border="0" cellspacing="0" cellpadding="0" class="activity-phnone">
				  <tr>
					<td >
					<p class="upinput">
                        <asp:DropDownList ID="DropDownListEm5" runat="server" CssClass="autoselect">
                        </asp:DropDownList>					
                         <img src="Media/Css/images/add-green.png" class="addimg" onClick='addModelEmail("p")' alt=""/>   
                         <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelFax",this)'  alt="" /> 						
					</p>
					</td>					
				  </tr>
				  <tr>					
					<td >
                        <asp:TextBox ID="TextBoxEmail5" runat="server" CssClass="input200"></asp:TextBox>      
                        </td>              
														
				  </tr>
                  <tr>
                     <td class="checkbox-wrap">
                         <asp:CheckBox ID="CheckBoxES5" runat="server" /><label for="ContentPlaceHolder2_CheckBoxES5" style="padding-right:33px;">Unsubscribe</label><asp:CheckBox ID="CheckBoxHB5" runat="server" /><label for="ContentPlaceHolder2_CheckBoxHB5" >Hard Bounce</label></td>	
                  </tr>
                   <tr>
                  <td colspan="3">
                  <span class="Warning" ></span>
                  </td>
                  </tr>
				</table>		
               </asp:Panel>
                	
			</td>
		  </tr>
          <tr>
          <td></td>
          </tr>
          <tr>
          <td style="padding-bottom:0;">
               Website
          </td>
          </tr>
          <tr>
          <td id="web-wrap" class="parnt">
          <asp:Panel ID="PanelW1" runat="server" CssClass="activityWrap">
              <p class="upinput">
                  <asp:DropDownList ID="DropDownListW1" CssClass="autoselect" runat="server">
                  </asp:DropDownList>                
                    <img  src="Media/Css/images/add-green.png" class="addimg"  onClick='addModelWeb("w")' alt="" /></p>
			
                <asp:TextBox ID="TextBoxWeb1" CssClass="input200" runat="server"></asp:TextBox>
                <br />                
                <span class="Warning" ></span>
			</asp:Panel>
            <asp:Panel ID="PanelW2" runat="server" CssClass="activityWrap">
              <p class="upinput">
                  <asp:DropDownList ID="DropDownListW2" CssClass="autoselect" runat="server">
                  </asp:DropDownList>
                     <img src="Media/Css/images/delete-green.png"  onClick='delete_confirms("DeleteBox","delModelWeb",this)' alt="" /> 	
                    </p>
			
                <asp:TextBox ID="TextBoxWeb2" CssClass="input200" runat="server"></asp:TextBox><br />
                
                  <span class="Warning" ></span>
                 
	         </asp:Panel>

          </td>
          </tr>
 </table>
        <h4 class="title20">Attribute</h4>
        <asp:CheckBoxList ID="ckbAttributeList" Width="100%" ViewStateMode="Disabled"  RepeatColumns="3" class="labelTb" RepeatDirection="Horizontal" runat="server" RepeatLayout="Table">
        </asp:CheckBoxList>		  
		  <h4 class="title20">Job Nature</h4>
          <asp:CheckBoxList ID="ckbJobNatureList" Width="100%" ViewStateMode="Disabled"  RepeatColumns="3"  class="labelTb" RepeatDirection="Horizontal" runat="server" RepeatLayout="Table">
        </asp:CheckBoxList>		  
		  <h4 class="title20" >Committee Member</h4>
          	<div class="clear10"></div>
            <table>
            <tr><td>
             <ul class="uibtn">
    	        <li onclick="javascript:EditCommiteeMember('add','')"><span>Add Committee Member</span></li>
	        </ul>
            </td></tr>
            </table>     
     <div class="clear10"></div>
     <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
         <table cellpadding="0" cellspacing="0" class="listing-table" border="0" width="100%" >
         <thead>
         <tr>
          <td>Year / Term</td>
           <td>Date</td>
            <td>Committee Type</td>
             <td>Committee Position</td>
              <td></td>
         </tr>
         </thead>
         <tbody id="listing-tablebody">        
             <asp:Repeater ID="rptCommitteeMember" runat="server" 
                 onitemdatabound="rptCommitteeMember_ItemDataBound" ViewStateMode="Disabled">
                 <ItemTemplate>
                    <tr>
                        <td><asp:Literal ID="ltYear" runat="server"></asp:Literal></td>
                        <td><asp:Literal ID="ltDate" runat="server"></asp:Literal></td>
                        <td><asp:Literal ID="ltType" runat="server"></asp:Literal></td>
                        <td><asp:Literal ID="ltPosition" runat="server"></asp:Literal></td>                        
                       <%-- <td><a href="javascript:EditCommiteeMember('get','<%#Eval("Cperson_CommMemberUID")%>')">Edit</a> | <a href="javascript:DeleteCommiteeMember('<%#Eval("Cperson_CommMemberUID")%>')">Delete</a></a></td>--%>
                        <td><a href="javascript:EditCommiteeMember('get','<%#Eval("KeyUID")%>_<%#Eval("From")%>')">Edit</a> | <a href="javascript:delete_confirms('DeleteBox_<%#Eval("KeyUID")%>-<%#Eval("From")%>','DeleteCommit',this)">Delete</a></a></td>
                    </tr>
                 </ItemTemplate>
             </asp:Repeater>    
         </tbody>
        </table>
        </ContentTemplate>
        <Triggers><asp:AsyncPostBackTrigger ControlID="btnRefreshCommitee"  EventName="Click"/></Triggers>
     </asp:UpdatePanel>
        <div class="clsNodisplay"> <asp:Button ID="btnRefreshCommitee" runat="server" onclick="btnRefreshCommitee_Click"/>
            <asp:Button ID="btnRefreshCPList" runat="server" OnClick="btnRefreshCPList_Click"/>
        </div>
     <div class="clear20"></div>

	<table width="200" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td>
				 <ul class="uibtn">
    	            <li>
                    <asp:LinkButton ID="lkbtnSave" ValidationGroup="con" runat="server" OnClientClick="return CheckInfo()" onclick="lkbtnSave_Click">Save</asp:LinkButton> 
                    </li>
	            </ul>
				</td>
				<td>
				 <ul class="uibtn">
    	            <li class="LiOFAdd" id="LiOfQuitAdd"  onClick="javascript:QuitToAddContactPerson();"><span><asp:HyperLink ID="lkQuit" runat="server">Quit</asp:HyperLink></span></li>
	            </ul>
				</td>
			  </tr>
              <tr><td colspan="2">
                  <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
                      <ContentTemplate>
                        <asp:Label ID="lblMeg" runat="server" CssClass="clsWarningMeg"></asp:Label>
                          <asp:HiddenField ID="hidJobNatureUID" runat="server" />
                          <asp:HiddenField ID="hidJobHasChecked" runat="server" />
                          <asp:HiddenField ID="hidAttributeUID" runat="server" />
                          <asp:HiddenField ID="hidAttriHasChecked" runat="server" />
                          <asp:HiddenField ID="hidTblCPUID" runat="server" />
                            <asp:HiddenField ID="hidAppCPUID" runat="server" />
                      </ContentTemplate>
                      <Triggers><asp:AsyncPostBackTrigger ControlID="lkbtnSave" EventName="Click" /></Triggers>
                      </asp:UpdatePanel>
              </td></tr>
			</table>
	</div>
	<div class="clear20"></div>     
	<div class="bankwrap">
        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
        <asp:Repeater ID="rptCPList" runat="server" ViewStateMode="Disabled">
        <ItemTemplate>
            <div class="tb-wrap round" id="list_<%# Eval("URLUID") + "_" + Eval("IsFromApp")%>">	
	            <div class="tb-top round">		            
                <div class="editBox">
                <span id="search-btn<%#Convert.ToString(Container.ItemIndex)%>" class="tb-slide" onclick="tbSlideClick(this,'<%# Container.ItemIndex %>')">&nbsp;</span>
                <a href="M_ContactPerson.aspx?<%= Constant.UrlParamName.custToContactPersonUID %>=<%# Eval("URLUID")%>&<%=Constant.UrlParamName.IsFromApp %>=<%#Eval("IsFromApp") %>">Edit</a>
                <span class="slplit"> | </span> 
                <a href="javascript:delete_confirms('DeleteBox_<%# Eval("URLUID")%>-<%#Eval("IsFromApp") %>','DeleteCust_CP',this)">Delete</a>
                <span class="slplit"> | </span> 
                </div>

	            </div>
	            <div class="tb-cont">
	             <table width="500" border="0" cellspacing="0" cellpadding="0" class="tab-list-table">
	              <tr>
		            <td width="100" class="tleft">Contact Person</td>
		            <td width="2">&nbsp;</td>
		            <td width="388"><%#Eval("FullNameAndImg")%></td>
	              </tr>
	              <tr>
		            <td class="tleft">Attribute</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("strAttribute")%></td>
	              </tr>
	              <tr>
		            <td class="tleft">Job Nature</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("strJobNature")%></td>
	              </tr>
	  	          <tr>
		            <td class="tleft">Committee Member</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("strCommitteeMember")%></td>
	              </tr>
	  	          <tr>
		            <td class="tleft">Address</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("strAddress")%> <br/></td>
	              </tr>
	              <tr>
		            <td class="tleft">Telephone</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("strTel")%></td>
	              </tr> 
	              <tr>
		            <td class="tleft">Fax</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("strFax")%></td>
	              </tr>
	              <tr>
		            <td class="tleft">Email</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("Email")%></td>
	              </tr>
	              <tr>
		            <td class="tleft">website</td>
		            <td>&nbsp;</td>
		            <td><%#Eval("WebSite")%></td>
	              </tr>
	            </table>	
	            </div>
            </div>
        </ItemTemplate>
        </asp:Repeater>
        </ContentTemplate>
        <Triggers><asp:AsyncPostBackTrigger ControlID="lkbtnSave" EventName="Click" /></Triggers>
        <Triggers><asp:AsyncPostBackTrigger ControlID="btnRefreshCPList" EventName="Click" /></Triggers>
        <Triggers><asp:AsyncPostBackTrigger ControlID="btnRefreshCommitee"  EventName="Click"/></Triggers>
        </asp:UpdatePanel>
	    <div class="clear10"></div>
		</div>
	</div>

    <div class="commit" id="commit" style="min-height:255px;height:auto!important;height:255px;">	          
             <table cellpadding="0" cellspacing="0" width="700">		
		  <tr>
			<td width="40%"><p class="upinput">Committee Type</p>
                <asp:DropDownList ID="ddlCommType" CssClass="adselect" runat="server">
                </asp:DropDownList>
			</td>
			<td colspan="2" ><p class="upinput">Date</p>
			<div>
                <asp:TextBox ID="txtStartDate" CssClass="input200" runat="server"/> to <asp:TextBox ID="txtEndDate" CssClass="input200" runat="server"/>
             </div>
			</td>
			<td >&nbsp;</td>						
		  </tr>		 
		  <tr>
			<td ><p class="upinput">Committee Position</p>
			    <asp:DropDownList ID="ddlCommPosition" CssClass="adselect" runat="server">
                </asp:DropDownList>
            </td>
			<td > 
			<p class="upinput">Year / Term <i>(eg. 2010/2011; 2010-2013)</i></p>
            <asp:TextBox ID="txtYear" CssClass="input200" runat="server"/>
			</td>	
			<td >&nbsp;</td>
								
		  </tr>
		  <tr>
		  <td colspan="3">
		  <p class="upinput">Remark</p>
          <asp:TextBox ID="txtRmark" CssClass="inputRmark" runat="server"/>
		  </td>
		  	<td >&nbsp;</td>	
		  </tr>		  
		   <tr>
			<td height="20"><span id="committeeMeg" class="clsWarningMeg"></span>&nbsp;</td>
			
			<td>&nbsp;</td>
		  </tr>		  
		</table>	
        <div class="clear10"></div>

        <table width="100%">
        <tr>
        <td width="30"></td>
        <td align="left">
        	<table width="300" border="0" cellspacing="0" cellpadding="0" style="float:left">
			  <tr>
				<td width="80">
				 <ul class="uibtn">
    	<li  onclick="SaveCommiteeMember()" ><span>Save</span></li>
	</ul>
				</td>
				<td>
				 <ul class="uibtn" onclick="CloseCommiteeMember()">
    	<li ><span>Quit</span></li>
	</ul>
				</td>			
			  </tr>
			</table>
           </td> </tr>
</table>
	    </div> 
	<div id="DeleteBox" class="Popconfirms">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
	
	<div class="Poptxt">Are you sure to delete?</div></td>  
    
  </tr>
  <tr>
    <td align="center"><span id="sureMeg" class="clsWarningMeg"></span>
	<div class="clear20"></div>
	<table>
	<tr>
    <td>
	 <ul class="uibtn">
    	<li onclick="SureDelete()" ><span>Sure</span></li>
	</ul>
	</td>
	<td width="10"></td>
    <td>
	 <ul class="uibtn">
    	<li onclick="CloseDelete()" ><span>Quit</span></li>
	</ul>
	</td>
	</tr>
	</table>
	</td>
  </tr>
</table>
</div>
    <asp:HiddenField ID="hidOptionType" runat="server" />
    <asp:HiddenField ID="hidtxtDepartment_Eng" runat="server" />
    <asp:HiddenField ID="hidtxtDepartment_Chi" runat="server" />
    <ajax:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtStartDate" Format="dd MMM yyyy" />
    <ajax:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtEndDate" Format="dd MMM yyyy" />

 <ajax:TextBoxWatermarkExtender ID="TBWE11" runat="server"       TargetControlID="TextBoxTC1"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TBWE12" runat="server"       TargetControlID="TextBoxTA1"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TBWE13" runat="server"       TargetControlID="TextBoxT1"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />

 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"       TargetControlID="TextBoxTC2"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server"       TargetControlID="TextBoxTA2"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server"       TargetControlID="TextBoxT2"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />  

 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server"       TargetControlID="TextBoxTC3"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server"       TargetControlID="TextBoxTA3"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" runat="server"       TargetControlID="TextBoxT3"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />
  
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" runat="server"       TargetControlID="TextBoxTC4"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender8" runat="server"       TargetControlID="TextBoxTA4"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender9" runat="server"       TargetControlID="TextBoxT4"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />
 
  <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender10" runat="server"       TargetControlID="TextBoxTC5"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender11" runat="server"       TargetControlID="TextBoxTA5"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender12" runat="server"       TargetControlID="TextBoxT5"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />
     
<!--fax-->
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender13" runat="server"       TargetControlID="TextBoxFC1"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender14" runat="server"       TargetControlID="TextBoxFA1"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender15" runat="server"       TargetControlID="TextBoxF1"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />

 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender16" runat="server"       TargetControlID="TextBoxFC2"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender17" runat="server"       TargetControlID="TextBoxFA2"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender18" runat="server"       TargetControlID="TextBoxF2"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />  

 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender19" runat="server"       TargetControlID="TextBoxFC3"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender20" runat="server"       TargetControlID="TextBoxFA3"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender21" runat="server"       TargetControlID="TextBoxF3"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />
  
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender22" runat="server"       TargetControlID="TextBoxFC4"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender23" runat="server"       TargetControlID="TextBoxFA4"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender24" runat="server"       TargetControlID="TextBoxF4"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />
 
  <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender25" runat="server"       TargetControlID="TextBoxFC5"      WatermarkText="Country Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender26" runat="server"       TargetControlID="TextBoxFA5"      WatermarkText="Area Code"      WatermarkCssClass="waterCouco" /> 
 <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender27" runat="server"       TargetControlID="TextBoxF5"      WatermarkText="Telephone No."      WatermarkCssClass="waterTelco" />
     
     <!--EMAIL-->
    <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender28" runat="server"       TargetControlID="TextBoxEmail1"      WatermarkText="example@example.com"      WatermarkCssClass="waterEmailco" />
    <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender29" runat="server"       TargetControlID="TextBoxEmail2"      WatermarkText="example@example.com"      WatermarkCssClass="waterEmailco" />
    <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender30" runat="server"       TargetControlID="TextBoxEmail3"      WatermarkText="example@example.com"      WatermarkCssClass="waterEmailco" />
    <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender31" runat="server"       TargetControlID="TextBoxEmail4"      WatermarkText="example@example.com"      WatermarkCssClass="waterEmailco" />
    <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender32" runat="server"       TargetControlID="TextBoxEmail5"      WatermarkText="example@example.com"      WatermarkCssClass="waterEmailco" />
      <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender33" runat="server"       TargetControlID="TextBoxWeb1"      WatermarkText="http://www.example.com"      WatermarkCssClass="waterEmailco" />
    <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender34" runat="server"       TargetControlID="TextBoxWeb2"      WatermarkText="http://www.example.com"      WatermarkCssClass="waterEmailco" />
    <asp:HiddenField ID="hidCustomerUID" runat="server" />
    <asp:HiddenField ID="hidAddressUID" runat="server" />
    <asp:HiddenField ID="hidInfoUID" runat="server" />
    <asp:HiddenField ID="hidAllowToOption" runat="server" />
    <input type="hidden" id="hdcommitteeMemberID" />
</asp:Content>
